package com.leiyu.control

import com.jfinal.core.Controller
import com.leiyu.model.Blog

/**
  * Created by LeiYu on 2017/6/20.
  */
class IndexControl extends Controller{
  def index(): Unit ={
    val find = Blog.dao.findFirst("select * from t_blog")
    this.setAttr("data",find)
    render("/index.jsp")
  }

  def test(): Unit ={

      val file = this.getFile("pic1")
  }
}
